# !/usr/bin/env python
# -*- coding: utf-8 -*-
"""
 -------------------------------------------------
    File Name:     extensions.py
    Description:   扩展模块:启动 Mock 服务、多进程池等
 -------------------------------------------------
 """
from multiprocessing import Pool


def start_mock_service():
    """启动 Mock 服务"""
    print("启动 Mock 服务...")
    # 模拟 Mock 服务逻辑
    pass


def initialize_process_pool():
    """初始化多进程池"""
    print("初始化多进程池...")
    pool = Pool(processes=4)  # 并发数
    return pool
